<?php
/**
 * Created by PhpStorm.
 * User: moquan
 * Date: 2018/7/2
 * Time: 17:34
 */

namespace app\admin\controller;


use think\facade\Cache;

class System extends Base {
    function index(){
        return $this->fetch();
    }

    /**
     * 清空系统缓存
     */
    public function cleanCache(){

        $delTemp = del_file(ROOT_PATH.'/runtime',true);
        $clear = Cache::clear();
        if( $delTemp && $clear ){
            return true;
        }else{
            return false;
        }
    }
}